package com.zzy.system.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zzy.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单实体类，用于表示订单的各种属性信息。
 */
@Data
public class PurchaseRefundOrder extends BaseEntity {
    //主键 自增
    //主键 自增
    @TableId(type = IdType.AUTO)
    private Integer purchaseRefundOrderId;
    private static final long serialVersionUID = 1L;
    // 供应商退货单id
    @JSONField(name = "supplier_refund_sheet_id")
    private String supplierRefundSheetId;

    // 供应商id
    @JSONField(name = "supplier_id")
    private String supplierId;

    // 供应商名
    @JSONField(name = "supplier_name")
    private String supplierName;

    // 单据状态 0:审核不通过/1:待提交/2:待审核/3:审核通过/4:已结款
    @JSONField(name = "status")
    private int status;

    // 商品金额
    @JSONField(name = "sku_amount")
    private BigDecimal skuAmount;

    // 折让金额
    @JSONField(name = "discount_amount")
    private BigDecimal discountAmount;

    // 退货金额
    @JSONField(name = "total_amount")
    private BigDecimal totalAmount;

    // 创建时间
    @JSONField(name = "create_date")
    private Date createDate;

    // 退货日期
    @JSONField(name = "refund_date")
    private Date refundDate;

    private Integer pushErrorNum;
    private Integer isPush;
    @JSONField(name = "details")
    @TableField(exist = false)
    private List<PurchaseRefundOrderDetails> details;


}